package com.example.blogserver.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.blogserver.a_utils.ResponseBodyMessage;
import com.example.blogserver.pojo.SensitiveWord;

import javax.servlet.http.HttpServletRequest;

/**
 * @description
 * @descriptionDetail
 * @Author B3300
 * @copyright 摸鱼王胖嘟嘟
 * @Date 2024/3/28 14:34
 */
public interface SensitiveWordService extends IService<SensitiveWord> {

    /**
     * 分页查找
     */
    ResponseBodyMessage<Page> page(int page, int pageSize);

    /**
     * 添加敏感词
     */
    ResponseBodyMessage<String> insertSensitiveWord(HttpServletRequest request,String word);

    /**
     * 修改敏感词
     */
    ResponseBodyMessage<String> updateSensitiveWord(HttpServletRequest request,String word,String updateNewWord);

    /**
     * 删除敏感词
     */
    ResponseBodyMessage<String> deleteSensitiveWord(HttpServletRequest request,String word);
}
